package com.neusoft.neuiotms.dcom.repository.malfunction;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcom.model.malfunction.MalfunctionApplyForm;

public interface MalfunctionApplyFormRepository extends JpaRepository<MalfunctionApplyForm, Long> {

    MalfunctionApplyForm findByWorkNumAndTaskId(String workNum, String taskId);

    List<MalfunctionApplyForm> findByFrontlineEngineerCode(String frontlineEngineerCode);

    MalfunctionApplyForm findTopByWorkNumOrderByIdDesc(String workNum);

    void deleteByWorkNum(String workNum);

    List<MalfunctionApplyForm> findByServiceUnitCodeIn(List<String> serviceUnitCodeArr);

}
